package com.matt.repository.rel;

import com.matt.domain.rel.RelClassesNurse;
import com.matt.foundation.model.UnionKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * created by diao.qiao@outlook.com
 * from Matt
 * on 2018/12/25
 */
public interface RelClassesNurseRepository extends JpaRepository<RelClassesNurse,UnionKey> ,JpaSpecificationExecutor<RelClassesNurse> {
    //根据classesId删除关系
    Long deleteAllByIdLinkId(String linkId);

    List<RelClassesNurse> findByIdLinkId(String linkId);
}
